﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VehicleScale.Models
{
    public class ConfigModel : ModelBase
    {

        #region Properties

        #region EmployeePrefix Property
        private string _employeePrefix;
        public string EmployeePrefix
        {
            get { return _employeePrefix; }
            set
            {
                if (_employeePrefix != value)
                {
                    _employeePrefix = value;
                }
            }
        }
        #endregion

        #region CategoryPrefix Property
        private string _categoryPrefix;
        public string CategoryPrefix
        {
            get { return _categoryPrefix; }
            set
            {
                if (_categoryPrefix != value)
                {
                    _categoryPrefix = value;
                }
            }
        }
        #endregion

        #region ProductPrefix Property
        private string _productPrefix;
        public string ProductPrefix
        {
            get { return _productPrefix; }
            set
            {
                if (_productPrefix != value)
                {
                    _productPrefix = value;
                }
            }
        }
        #endregion

        #region CustomerPrefix Property
        private string _customerPrefix;
        public string CustomerPrefix
        {
            get { return _customerPrefix; }
            set
            {
                if (_customerPrefix != value)
                {
                    _customerPrefix = value;
                }
            }
        }
        #endregion

        #region VehicleScaleImPrefix Property
        private string _vehicleScaleImPrefix;
        public string VehicleScaleImPrefix
        {
            get { return _vehicleScaleImPrefix; }
            set
            {
                if (_vehicleScaleImPrefix != value)
                {
                    _vehicleScaleImPrefix = value;
                }
            }
        }
        #endregion

        #region VehicleScaleExPrefix Property
        private string _vehicleScaleExPrefix;
        public string VehicleScaleExPrefix
        {
            get { return _vehicleScaleExPrefix; }
            set
            {
                if (_vehicleScaleExPrefix != value)
                {
                    _vehicleScaleExPrefix = value;
                }
            }
        }
        #endregion

        #region EmployeeCodeLength Property
        private int _employeeCodeLength;
        public int EmployeeCodeLength
        {
            get { return _employeeCodeLength; }
            set
            {
                if (_employeeCodeLength != value)
                {
                    _employeeCodeLength = value;
                }
            }
        }
        #endregion

        #region CategoryCodeLength Property
        private int _categoryCodeLength;
        public int CategoryCodeLength
        {
            get { return _categoryCodeLength; }
            set
            {
                if (_categoryCodeLength != value)
                {
                    _categoryCodeLength = value;
                }
            }
        }
        #endregion

        #region ProductCodeLength Property
        private int _productCodeLength;
        public int ProductCodeLength
        {
            get { return _productCodeLength; }
            set
            {
                if (_productCodeLength != value)
                {
                    _productCodeLength = value;
                }
            }
        }
        #endregion

        private int _customerCodeLength;
        public int CustomerCodeLength
        {
            get { return _customerCodeLength; }
            set
            {
                if (_customerCodeLength != value)
                {
                    _customerCodeLength = value;
                }
            }
        }

        private int _vehicleScaleImLength;
        public int VehicleScaleImLength
        {
            get { return _vehicleScaleImLength; }
            set
            {
                if (_vehicleScaleImLength != value)
                {
                    _vehicleScaleImLength = value;
                }
            }
        }

        private int _vehicleScaleExLength;
        public int VehicleScaleExLength
        {
            get { return _vehicleScaleExLength; }
            set
            {
                if (_vehicleScaleExLength != value)
                {
                    _vehicleScaleExLength = value;
                }
            }
        }

        #region EmployeeCode Property
        public string EmployeeCode
        {
            get { return "1".PadLeft(this._employeeCodeLength, '0'); }
            set
            {
                if (this._employeeCodeLength != value.Length)
                {
                    this._employeeCodeLength = value.Length;
                }
            }
        }
        #endregion

        public string CategoryCode
        {
            get { return "1".PadLeft(this._categoryCodeLength, '0'); }
            set
            {
                if (this._categoryCodeLength != value.Length)
                {
                    this._categoryCodeLength = value.Length;
                }
            }
        }

        public string ProductCode
        {
            get { return "1".PadLeft(this._productCodeLength, '0'); }
            set
            {
                if (this._productCodeLength != value.Length)
                {
                    this._productCodeLength = value.Length;
                }
            }
        }

        public string CustomerCode
        {
            get { return "1".PadLeft(this._customerCodeLength, '0'); }
            set
            {
                if (this._customerCodeLength != value.Length)
                {
                    this._customerCodeLength = value.Length;
                }
            }
        }

        public string VehicleScaleImCode
        {
            get { return "1".PadLeft(this._vehicleScaleImLength, '0'); }
            set
            {
                if (this._vehicleScaleImLength != value.Length)
                {
                    this._vehicleScaleImLength = value.Length;
                }
            }
        }

        public string VehicleScaleExCode
        {
            get { return "1".PadLeft(this._vehicleScaleExLength, '0'); }
            set
            {
                if (this._vehicleScaleExLength != value.Length)
                {
                    this._vehicleScaleExLength = value.Length;
                }
            }
        }

        private int _vehicleScaleImStart;
        public int VehicleScaleImStart
        {
            get { return _vehicleScaleImStart; }
            set
            {
                if (_vehicleScaleImStart != value)
                {
                    _vehicleScaleImStart = value;
                }
            }
        }

        private int _vehicleScaleExStart;
        public int VehicleScaleExStart
        {
            get { return _vehicleScaleExStart; }
            set
            {
                if (_vehicleScaleExStart != value)
                {
                    _vehicleScaleExStart = value;
                }
            }
        }
        #endregion

    }
}
